﻿using log4net;
using Quartz;
using System;
using System.Threading;

namespace SyncUserAccount
{
    public class SyncJob : IJob
    {
        private readonly ILog _logger = LogManager.GetLogger(typeof(SyncJob));
        public void Execute(IJobExecutionContext context)
        {
            new Thread(() =>
            {
                try
                {
                    _logger.Info("清除离职用户开始***S");
                    var bll = new MyBll();
                    bll.Send();
                    _logger.Info("清除离职用户结束***E");
                }
                catch (Exception ex)
                {
                }
            }).Start();
        }

    }
}
